Go ProSign in

Create a GraphQL Mutation to Update Record in MongoDB

Mongoose provides findOneAndUpdate() method to update the document in the database. I will show you how to write a mutation to update the reocrd on the based on id.

You must be a Member to view code