Skip to content
Back

create or update document

  • 0
  • Self Hosted
S3ppo
11 Aug, 2024, 07:39

Hi!

i wrote a cloud function that queries an api in the web.

now i want to store queried data in my db.

is there a way that i dont have to check first if the key of the document in my collection already exists, and then i have to decide if i need an update or a create? something like db.create() with an attribute overwrite: true

due to performance this would be very nice.

best regards

TL;DR
Developers wants to streamline updating or creating documents in a database without checking if the key already exists. They are looking for a method like db.create() with an overwrite attribute to simplify the process for better performance.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more