-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SubscribePayload support for query/id #188
Comments
Hey there! Simply use the |
@enisdenjo Thanks and sorry, I did not see the recipe. |
Hey @artola, quick heads up: This means that you now can pass along the |
@enisdenjo Thanks for the info. But still I have my doubts about the Line 95 in 2933997
At least should be optional or FYI @michaelstaib |
@enisdenjo @artola lets do a PR to the actual HTTP spec to first get this change into the HTTP spec. I spoke to @IvanGoncharov about persisted queries a while ago and the general idea was to move the top-level This for instance this how an apollo persisted query request looks like. {
"extensions": {
"persistedQuery": {
"version": 1,
"sha256Hash": "ecf4edb46db40b5132295c0291d62fb65d6759a9eedfa4d5d612dd5ec54a6b38"
}
}
} So let me do a PR to the HTTP spec and then discuss things on that repo. |
I will write something to the following issue: |
I try mirroring the HTTP spec as much as possible. Having said that, if we make the |
Source code
graphql-ws/src/common.ts
Line 93 in e3b81fa
Expected Behaviour
SubscribePayload
should supportquery
(text) orid
(hashed query) forpersisted queries
(might be an union type).Actual Behaviour
Only
query
is allowed and it isrequired
.The text was updated successfully, but these errors were encountered: