authoring-graphql
Runs GraphQL queries or mutations against Sitecore's Authoring and Management API, returns JSON, checks syntax, and reads/writes authoring data including unpublished items.
Instructions
Executes any query or mutation against the Sitecore Authoring and Management GraphQL API and returns the data as JSON. The document is syntax-checked before it is sent. Unlike the Edge endpoint, this one reads and writes the authoring databases, so unpublished content is visible and mutations take effect immediately. Prefer a typed authoring-* tool when one covers the operation; use this for the rest of the schema, with authoring-introspect-schema for the SDL. The API supports no subscriptions, and rejects GET — everything goes over POST, which this tool does for you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The GraphQL document, e.g. 'query { sites { name rootPath } }' or a mutation. | |
| variables | No | The document's variables as a JSON object string, e.g. '{"itemId": "{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"}'. |