Dgraph Schema Fragment
While editing your schema, this GraphQL schema fragment can be useful. It sets up the definitions of the directives that you’ll use in your schema.
We’re overhauling Dgraph’s docs to make them clearer and more approachable. If you notice any issues during this transition or have suggestions, please let us know.
While editing your schema, you might find it useful to include this GraphQL
schema fragment. It sets up the definitions of the directives, etc. (like
@search
) that you’ll use in your schema. If your editor is GraphQL aware, it
may give you errors if you don’t have this available and context sensitive help
if you do.
Don’t include it in your input schema to Dgraph - use your editing environment to set it up as an import. The details depend on your setup.
Was this page helpful?