Skip to content

@defer and Automatic Persisted Queries first request fails #3525

Closed
@eric-c-douglass

Description

@eric-c-douglass

Summary

I noticed that when the server doesn't have the query stored and returns
{ "data": null, "errors": [{ "message": "PersistedQueryNotFound", "extensions": { "code": "PERSISTED_QUERY_NOT_FOUND" } }] }
and then request sending the full query, the response fails to parse on the client side with error couldNotParseIncrementalJSON

Once the server has the query, the first attempt using just the sha256Hash works fine.

Version

1.18.0

Steps to reproduce the behavior

I tested this running this project locally https://github.com/apollosolutions/retail-supergraph and using this query on the iOS side
query ExampleQuery { listAllProducts { id title ... on Product @defer(label: "deferDescription") { description } } }

Logs

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions