drupal-graphql / drupal-graphql/graphql
Persisted Querys not working
- Dominant language
- PHP
- Stars
- 287
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
I just tried to get persisted queries to work and used this documentation: https://www.drupal.org/docs/8/modules/graphql/query-maps
Uploading the json file which was generated with persistgraphql like described works well, I can then inspect the uploaded query. But if I want to use the query like described with a GET request, for example:
http://host.localhost/graphql?queryid=aabd53306a43f7bb1e24a4d5d035ad6cd13c30d5:1
I get the following in the Drupal log:
`Unable to resolve insecure field 'nodeQuery'.`
and this as a response message:
```
{
errors: [
{
message: "Internal server error",
category: "internal",
locations: [
{
line: 2,
column: 3
}
],
path: [
"nodeQuery"
]
}
],
data: {
nodeQuery: null
}
}
```
I am getting the same errors when using Automatic persisted queries with apollo-link-persisted-queries and https://github.com/drupal-graphql/graphql-apq.
Permissions for "Execute persisted GraphQL requests" are correctly set.
Any suggestions on that? I am trying to get the latest 3.x release to work with nodeQueries and would like to follow the persisted query approach.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.