You are looking at the docs for the unreleased main branch of Dgraph. The latest version is v23.1.
Ask a Question

GET Request

GraphQL request may also be sent using an HTTP GET operation.

\GET requests must be sent in the following format. The query, variables, and operation are sent as URL-encoded query parameters in the URL.

http://localhost:8080/graphql?query={...}&variables={...}&operationName=...
  • query is mandatory
  • variables is only required if the query contains GraphQL variables.
  • operationName is only required if there are multiple operations in the query; in which case, operations must also be named.