Overview
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.
This section describes all the things you can include in your input GraphQL schema, and what gets generated from that.
The process for serving GraphQL with Dgraph is to add a set of GraphQL type
definitions using the /admin
endpoint. Dgraph takes those definitions,
generates queries and mutations, and serves the generated GraphQL schema.
The input schema may contain interfaces, types, and enums that follow the usual GraphQL syntax and validation rules.
If you want to make your schema editing experience nicer, you should use an editor that does syntax highlighting for GraphQL. With that, you may also want to include the definitions here as an import.
Was this page helpful?