Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: update document all #5619

Open
2 tasks done
Sarahkhan20 opened this issue May 31, 2023 · 5 comments
Open
2 tasks done

🚀 Feature: update document all #5619

Sarahkhan20 opened this issue May 31, 2023 · 5 comments
Assignees
Labels
product / databases Fixes and upgrades for the Appwrite Database.

Comments

@Sarahkhan20
Copy link

🔖 Feature description

I was working with one attribute in document and to update it I used
updateDocument method. but since I wanted to update all the attributes based on their doocument ID.
I had to list all documents , store document ID in a state (in reactjs) ann then extract on the basis of array index one my one and had to loop it. Kindly bring update all documents feature. To avoid this and making development procedure simpler

🎤 Pitch

It can be used to simplify a basic task, reduce code written

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@AndySpider
Copy link

Same requirement.
In my case, I need to update an attribute of all documents in a collection, right now I have to list all documents and update them one by one. It's very low efficient I think, and due to the Query.limit, I have to list in a while loop until no more results, which makes the code more verbose...

@joeyouss
Copy link

joeyouss commented Jun 5, 2023

Thank you for opening this. Keeping it open as of now.

@joeyouss joeyouss self-assigned this Jun 14, 2023
@joeyouss joeyouss added the product / databases Fixes and upgrades for the Appwrite Database. label Jun 14, 2023
@LDY681
Copy link

LDY681 commented Jul 20, 2023

Same here. I think this is a pretty common user case to reset an attribute to default on day change. Right now I can't do it on bulk. This feature is really appreciated.

@silentmado
Copy link

I add my voice to this, and add the possibility to select the documents that need to be updated using Query.

@SMARTMICROWORLD
Copy link

@stnguyen90 kindly add this feature sometimes some docs attribute not updating beacause of server error in loop, it is good feature to add. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product / databases Fixes and upgrades for the Appwrite Database.
Projects
None yet
Development

No branches or pull requests

7 participants
@AndySpider @SMARTMICROWORLD @silentmado @LDY681 @joeyouss @Sarahkhan20 and others