EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/docs/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
Tools for Persisted Queries
Check a persisted query list's status and publish operations to it
The tools described in this section let your agent check a graph's persisted query list and publish operations to it.
Get Persisted Query List Status
Purpose: Check whether a graph variant has a Persisted Query List (PQL) configured and return its ID, its name, its current build revision, and its operation count. Use this to assess PQL configuration because a production variant with no PQL might be insecure. Pass the list ID to Publish Persisted Queries.
Example: "Does my production variant have a persisted query list configured?"
Publish Persisted Queries
Purpose: Publish operations to a persisted query list. Operations that you don't mention stay in the list unchanged: your agent passes the operations to add or replace, as well as the operations to remove. Returns the new revision and the total operation count or reports that nothing has changed. Use Get Persisted Query List Status first to find the list ID.
Example: "Add the operations in this manifest to my production persisted query list."