About this endpoint
What it does
Executes a GraphQL query against the PlaySocket GraphQL Gateway and returns the matching GraphQL response payload. The request body must include a GraphQL query, and can optionally include variables and operationName.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| query | String | Yes | The GraphQL query document to execute. |
| variables | Object | No | Optional map of GraphQL variables referenced in the query. Nullable. |
| operationName | String | No | Optional name of the operation to execute if the query contains multiple named operations. Nullable. |
Response
Returns a JSON object with nullable data and errors fields. When the query succeeds, data is a nullable object that can contain newSudokuBoard and/or newSchulteTable depending on the selected fields in the GraphQL query; errors is a nullable array of GraphQL error objects when execution fails.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Nullable response container for successful GraphQL payloads. Contains newSudokuBoard and/or newSchulteTable depending on the fields selected in the request query. |
| errors | Object Array | No | Nullable array of GraphQL error objects, present when execution fails. |