Persisted Documents
This article explains how to create, manage, and invoke persisted GraphQL documents in Umbraco Compose using aliases for improved performance and maintainability.
Benefits
Creating a Persisted Document
POST /v1/projects/{projectAlias}/environments/{environmentAlias}/graphql/persisted-documents HTTP/1.1
Host: management.umbracocompose.com
Content-Type: application/json
{
"persistedDocumentAlias": "my-software-names",
"description": "Gets the names of software items",
"document": "query Software {
content {
items {
... on Software {
name
}
}
}
}"
}Parameters
Parameter
Description
Invoking a Persisted Document
Parameters
Parameter
Description
Example
Last updated
Was this helpful?