Hasura subscriptions and urql example #1806
Svarto
started this conversation in
Show and tell
Replies: 2 comments 7 replies
-
Hey, Great work on integrating Hasura! 🙌 As a tip you can avoid this |
Beta Was this translation helpful? Give feedback.
3 replies
-
I'm getting an error with this example snippet.
Hasura token authenication is working ok, it's the hasura server that's complaining. urql.js (create client)
client call
client log
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, just sharing below a working example of urql and hasura subscriptions. I couldn't find this documented anywhere and an open discussion on the hasura repo looking for one. So thought I would just share it here for documentation and reference if anyone comes after me wanting to set this up!
A couple of gotchas I worked through:
{
"extensions": {
"path": "$.selectionSet.user_unread_notifications",
"code": "validation-failed"
},
"message": "field "user_unread_notifications" not found in type: 'subscription_root'"
}
Beta Was this translation helpful? Give feedback.
All reactions