Skip to content
Discussion options

You must be logged in to vote

I think that's correct. subscribe needs to receive an object that contains the result with a property name that is same as the name of the root field. In your case; the result of addedBook's subscribe method should return something like { addedBook: IBookModel}.
If you still think that's incorrect, please share an actual implementation with a real server in CodeSandbox.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dotansimha
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants