GraphQL

Admin GraphQL

Internal admin GraphQL endpoint over the ent graph. The internal-secret middleware marks the request internal so resolvers can bypass per-user tenant scoping.

post/graphql

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /graphql
  • Auth: API key in header X-Internal-Secret

Request body

operationNamestring nullable

Optional operation name.

querystring required

GraphQL query or mutation.

variablesobject

Optional GraphQL variables.

Example request

{
  "operationName": "ListUsers",
  "query": "{ users(first: 10) { edges { node { id email } } } }"
}

Response

GraphQL response.

dataobject

GraphQL data result.

errorsobject[]

GraphQL execution errors.

Changes

No operation changes recorded.