I am trying to save a persisted query in AEM's GraphiQL Explorer.
I can run the query fine, as seen on the right side results.
But if I try "Save As", I get the following error. "Validation error of type FieldUndefined: Field 'adventureList' in type 'QueryType' is undefined"
I also tried named query, but no avail.
query getAdventures { adventureList { items { _path adventureTitle adventurePrice adventureTripLength adventurePrimaryImage { ... on ImageRef { _path mimeType width height } } } } }
Solved! Go to Solution.
Views
Replies
Total Likes
Can you add the screen shot of the error you mentioned above.
Also, please check, following things are in sync on both publisher and author:
1. Content Fragment Models
2. Content Fragments
3. Persisted Queries
Hello, I was able to persist the query but after a while, the error came in the publisher logs. The query runs fine on the Author though. Env : AEM Cloud.
Not sure how you fixed this on Author. Probably same config need to be published to Publisher.
Please find below link, to evaluate if your GraphQL Endpoints and Persisted GraphQL queries are accessible.
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...
Also, another link that elaborate on Publishing Persisted Queries
The end-point itself is accessible.
We did not get this error on Author.
We got it in publish.
The error in the publisher logs says <ContentModel_1> does not have the field <fieldName1>.
This <ContenModel_1> is not present in author.
We attempted to fix this by creating a dummy model with this name and publishing, but no luck yet.
Can you add the screen shot of the error you mentioned above.
Also, please check, following things are in sync on both publisher and author:
1. Content Fragment Models
2. Content Fragments
3. Persisted Queries