Skip to content

How do subscriptions use @Root? #1212

Answered by MichalLytek
gblikas asked this question in Q&A
Discussion options

You must be logged in to vote

I did that 4 years ago, I wouldn't name that now @Root() 😅
Some GraphQL tools call it parent, source, root - it's basically the first parameter of the resolver.

In case of subscriptions, it's the payload from the pub sub - the published message.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gblikas
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