Closed deathg0d closed 6 years ago
You need some way to identify which user is making the request. This isn't really part of the GraphQL spec, as far as I know. Perhaps https://medium.com/the-graphqlhub/graphql-and-authentication-b73aed34bbeb might help?
Here's a small issue I faced and couldn't find much info in the documentation. I am trying to create private chat messages. We have the following code to subscribe a user to a topic:
and to publish
I have used onConnect to verify that the user is authenticated
This works well when I want to subscribe users to a particular topic for example. But how do I implement, private user to user communication? I have tried the
withFilter
but can't seem to implement user specific authorization(with respect to a message) checks.