Update status check
Hi, i wanna check update status this code.
How can i do that.
await ctx.db.replace(data._id, { ...data,flight_id: args.new_flight_id });
3 Replies
You can also do:
What do you mean by "check update status" exactly?
I need to give feedback on whether the data has been updated or not. How can I do that?
What is the difference between replace and patch? Why should I use Patch?
Patch vs replace: https://docs.convex.dev/database/writing-data#updating-existing-documents
Whether it's been updated:
Writing Data | Convex Developer Hub
Mutations can insert, update, and