Skip to content

Persisted queries not compatible with Relay #44

Answered by enisdenjo
DavidErben asked this question in Q&A
Discussion options

You must be logged in to vote

The query field is required to be coherent with the GraphQL over HTTP spec.

What you should do is set an empty string to the query parameter and provide the persisted query ID within the extensions (exactly like you already do). The network layer is separate from Relay, it does not care about how you structure your request.

I reckon the error you're getting is originating from the servers response, not the request. You can confirm that by hooking up on the sink.error or sink.next and checking the errors field.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidErben
Comment options

Answer selected by DavidErben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #43 on December 27, 2022 09:57.