-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Feat: Support for bulk insertion #931
base: main
Are you sure you want to change the base?
Conversation
Threat the request param as integer closes typicode#925, closes typicode#396
Added support for bulk insertion on plural routes and nested routes, closes typicode#482
@typicode could we get this feature merged? |
Any updates on when this may get merged? |
We actually needed the fix really badly, so we created our own fix. (somehow the test that is commented out there was failing on my machine, you can ignore that change) |
When nested route is called with a non numeric id it should not be parsed to int, otherwise numbers or numeric strings are parsed to int with base 10
LGTM now! |
Any reason why this hasn't been merged yet? |
Will this be merged soon? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added support for bulk insertion when posting array to plural and nested routes.
When a single object is posted it work as usual, when an array (of objects) is posted it will perform bulk insertion.
Also the id field is parsed into number to fix match issues, see #396