Skip to content

Avoid graphql.AssertException for persisted query #930

Closed
@rstoyanchev

Description

@rstoyanchev

For persisted queries, the request could look like this:

 {
     "extensions":{
        "persistedQuery":{
           "version":1,
           "sha256Hash":"ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38"
          }
      }
}

As there is no "query", setting the query on ExecutionInput results in a "query can't be null" AssertException.

We should use PersistedQuerySupport#PERSISTED_QUERY_MARKER as the query in that case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions