You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the problem I encountered came about when I was creating an 'account settings' page for my app that uses GraphQL transport with Mongo. The purpose of this page is to allow users to update their profile, email, username, etc. When writing the resolvers for the various update tasks, I found that none of the methods in the accounts packages return the updated user data after they run. This means I have to make a separate call to the database to retrieve the updated user data to return that back to the client.
Describe the solution you'd like
I think it would be good to have a way for people using the accounts methods to specify that they would also like the updated user data to be returned after any operation that updates the user. This could be behind a flag or by adding/updating the relevant methods already in the packages.
Returning the user (or user fragments) in graphql reponses can also be beneficial for automatic cache updates.
The text was updated successfully, but these errors were encountered:
Feature request
Is your feature request related to a problem?
So the problem I encountered came about when I was creating an 'account settings' page for my app that uses GraphQL transport with Mongo. The purpose of this page is to allow users to update their profile, email, username, etc. When writing the resolvers for the various update tasks, I found that none of the methods in the accounts packages return the updated user data after they run. This means I have to make a separate call to the database to retrieve the updated user data to return that back to the client.
Describe the solution you'd like
I think it would be good to have a way for people using the accounts methods to specify that they would also like the updated user data to be returned after any operation that updates the user. This could be behind a flag or by adding/updating the relevant methods already in the packages.
Returning the user (or user fragments) in graphql reponses can also be beneficial for automatic cache updates.
The text was updated successfully, but these errors were encountered: