Hi Team,
Created new GraphQL Persistence query and while accessing in publish it is giving the below error. Is there any permissions missing in publish?
{"errors":[{"errorType":"PersistenceError","message":"Could not find Persisted Query","details":"Configuration: 'project123' and Query Name: 'productdata' does not resolve to an existing Persistent Query"}]}
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @VGKrish,
Could you verify if the persisted query is published?
Go to CRXDE and check if replicated: /conf/project123/settings/graphql/persistentQueries/productdata
Also, Verify that the GraphQL endpoint is accessible on Publish - Make sure you're using the correct endpoint on the Publish instance:
https://<publish-domain>/graphql/execute.json/project123/productdata
If you're using GraphQL via a frontend app, confirm that the endpoint points to the Publish instance and not to Author by mistake.
At last, Check permissions on the Publish instance
If you are using a service user or ACLs to access GraphQL endpoints:
Ensure the correct service user has read access to:
/conf/project123/settings/graphql/persistentQueries
And any associated content paths used by the query
Hi @VGKrish,
Could you verify if the persisted query is published?
Go to CRXDE and check if replicated: /conf/project123/settings/graphql/persistentQueries/productdata
Also, Verify that the GraphQL endpoint is accessible on Publish - Make sure you're using the correct endpoint on the Publish instance:
https://<publish-domain>/graphql/execute.json/project123/productdata
If you're using GraphQL via a frontend app, confirm that the endpoint points to the Publish instance and not to Author by mistake.
At last, Check permissions on the Publish instance
If you are using a service user or ACLs to access GraphQL endpoints:
Ensure the correct service user has read access to:
/conf/project123/settings/graphql/persistentQueries
And any associated content paths used by the query
Can you check persistent query is published?
For more details check my blog .
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies