Thanks for the very comprehensible intro to graphQL!
If I may add, the part about deleting users is a little confusing:
deleteUser: we should pass an ID, name, email, and age. It should return a new user to us.
It shouldn't return a new user, am I right? And is there a particular reason you want to return the user after deleting it?
Oh, my bad. It should return the deleted user to us, just to make sure that the mutation worked fine.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the very comprehensible intro to graphQL!
If I may add, the part about deleting users is a little confusing:
deleteUser: we should pass an ID, name, email, and age. It should return a new user to us.
It shouldn't return a new user, am I right? And is there a particular reason you want to return the user after deleting it?
Oh, my bad. It should return the deleted user to us, just to make sure that the mutation worked fine.