#Update status check

1 messages · Page 1 of 1 (latest)

carmine grove
#

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 });

pallid igloo
#

You can also do:

await ctx.db.patch(data._id, { flight_id: args.new_flight_id });

What do you mean by "check update status" exactly?

carmine grove
#

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?