-
Notifications
You must be signed in to change notification settings - Fork 2
API
This endpoint allows the retrieval of the current GraphQL schema.
This endpoint will execute a GraphQL query specified in the parameters.
Name | Mandatory | Description |
---|---|---|
query | true | Defines the GraphQL query to be executed |
operationName | false | Defines which operation should be executed if the query contains multiple operations |
variables | false | Defines the query variables as JSON encoded string |
GET /o/graphql/api?query={me{name}}
{
"data": { ... },
"errors": [ ... ],
"extensions": {
"tracing": { ... }
}
}
The data
will contain the returned objects from the GraphQL query.
The errors
will contain an array of issues encountered during the processing of the query. Might not be sent.
The extensions.tracing
will contain tracing information of the query. Might not be sent.
This endpoint will execute a GraphQL query specified in the body. The body contains a JSON object defining the GraphQL query, the operation to execution if multiple are available and the variables values if needed.
None
Content-Type: application/json
Name | Mandatory | Description |
---|---|---|
query | true | Defines the GraphQL query to be executed |
operationName | false | Defines which operation should be executed if the query contains multiple operations |
variables | false | Defines the query variables as JSON encoded string |
POST /o/graphql/api
{
"query": "...",
"operationName": "...",
"variables": { "myVariable": "someValue", ... }
}
{
"data": { ... },
"errors": [ ... ],
"extensions": {
"tracing": { ... }
}
}
The data
will contain the returned objects from the GraphQL query.
The errors
will contain an array of issues encountered during the processing of the query. Might not be sent.
The extensions.tracing
will contain tracing information of the query. Might not be sent.
This endpoint will execute a GraphQL query specified in the body. The latter will contain only the GraphQL query that will be executed.
None
Content-Type: application/graphql
The body will contain the GraphQL query directly. For example:
{
me {
name
}
}
POST /o/graphql/api
{
me {
name
}
}
{
"data": { ... },
"errors": [ ... ],
"extensions": {
"tracing": { ... }
}
}
The data
will contain the returned objects from the GraphQL query.
The errors
will contain an array of issues encountered during the processing of the query. Might not be sent.
The extensions.tracing
will contain tracing information of the query. Might not be sent.