Apollo GraphOS Platform
OverviewQuickstart
APIs and Tools
Schema Management
Explorer IDE
Graph Security
Metrics and Insights
Access Management
Graph Management
Production Readiness
Platform Limits

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.

note
These tools act on your organization's data, so they require authentication. For instructions on how to authenticate, go to the Authentication section.

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

caution
Publish Persisted Queries changes the set of operations that your router accepts. Before running this tool, confirm the graph, the list, and the operations to add or remove.

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."