Back

having trouble figuring out how to update a collection

  • 0
  • Self Hosted
  • Auth
  • Web
skinnyK
27 Jul, 2024, 12:23

I have a quiz app that I am building for a wedding this weekend.
I have everything set up with auth and adding users to the db.

The next (and final, I think) step will be to collect the user's email and score when they complete the quiz, then appending that to my "scores" collection in the scoresList document as a part of the string array.

I just started playing with this this weekend, so please forgive my NOOBness

TL;DR
Developers want to update a collection by appending each new user's email and score in the format <user.email>_<user.score>. They are building a quiz app for a wedding and are seeking advice on how to efficiently handle the data without creating a new document for each user.
skinnyK
27 Jul, 2024, 12:27

thinking to append each new completed user's information into this array

and concat two values together: <user.email>_<user.score>

felt like that was easier than having a new document for each user, then trying to sort those

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