-
Notifications
You must be signed in to change notification settings - Fork 156
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 request: handling of collection #72
Comments
Take a look at this answer from StackOverflow: http://stackoverflow.com/a/1269228/1779688 |
Making algorithmic endpoints for every api endpoint is quite tedious task. |
Was this ever implemented in any form? |
Bulk update and delete are very opinionated in the way resource identifiers should be passed and how errors should be handled. Bulk create is relatively simple, but I am reluctant to implement it because it would make our API inconsistent (ie. bulk create, but not update and delete) |
@Quixomatic yes, admin for example. I want to provide UI for the user to edit and save back to database. it doesn't matter what the change is. the admin-user change something in the object and I want to save as it is to db. |
In mongoose there is option to upsert bulk data, I think this library should provide a way to support this option, and to solve the problems to achieve the goal. |
What about bulk queries? I have a use case where I cannot use populate because I am joining on non _id field, so I need a list of queries to be resolved in one call rather in hundreds of calls. |
I hear GraphQL
Op do 12 dec. 2019 om 12:20 schreef StoyanStAtanasov <
[email protected]>:
… What about bulk queries. I have a use case where I cannot use populate
because I am joining on non _id field, so I need a list of queries to be
resolved in one call rather in hundreds of calls.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#72?email_source=notifications&email_token=AFL2SSS2J33HY7M55TPOWLTQYINBXA5CNFSM4AVH2QL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGWLEOQ#issuecomment-564965946>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFL2SSTEAOXMVXYPT4KNLCDQYINBXANCNFSM4AVH2QLQ>
.
|
I actually came from GraphQL to this project because GraphQL is complicated for small teams and projects. I needed something simple. I want to jump back to GraphQL when the dev experience is better. |
REST may handle collections:
For bulk POST/PUT it is crazy to call API 1000 times, better solution would be:
POST/PUT request to
/api/v1/resource/
should be able to handle collection.Current example:
Current response:
Also please note is html not a json
on server:
Expected response:
The text was updated successfully, but these errors were encountered: