name
from a type Person
from the field name
of different type (they may have different indexes),
Dgraph is using a dotted notation for the DQL schema.
For example, deploying the following GraphQL Schema
Person.id default
Person.name string
Person.friends [uid]
dgraph.type
equal Person
.
The default mapping can be customized by using the
@dgraph directive.
uid
uid
predicate as unique identifier for every node in the graph. Dgraph returns the
value of uid
when a GraphQL field of type ID is requested.
@search
directive tells Dgraph what search to build into your GraphQL API.
!
nor βuniqueβ constraint.
Constraints on the graph are handled by correctly using upsert
operation in
DQL.
aliases
such as name: Person.name
to name
the predicates in the JSON response,as theyβre declared in the GraphQL schema.
Property
are: