loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Relation REST API should support creation of multiple items at once

Open fabien opened this issue 12 years ago • 5 comments

The -toMany relations could support POSTing an array of models to be created and associated. We should establish a convention for handling validation errors in this scenario. Of course, those inserts will be far from atomic, but it will certainly be a valuable option to have.

Based on this thread: https://groups.google.com/forum/#!topic/loopbackjs/CASU0BCDzS0

fabien avatar Aug 28 '14 15:08 fabien

I believe this is also related to the idea expressed on this thread: https://groups.google.com/forum/#!topic/loopbackjs/yqpTRkJMzpI (:

glesage avatar Sep 02 '14 18:09 glesage

Just to clarify: is this one about creating an array which may include model AND a related model(s)?

voitau avatar Nov 08 '14 04:11 voitau

I had the same question (aka problem) that I don't wanted to create a separate POST request for something that should really be POSTed once. Basically like described in this thread: https://groups.google.com/forum/#!topic/loopbackjs/yqpTRkJMzpI

Seeing that this was asked 2 years ago I'm now wondering what the progress is for this feature? It's obviously not picked up yet. But what are the plans? Will this be released anytime soon?

chinookproject avatar Mar 10 '16 12:03 chinookproject

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 23 '17 14:08 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Sep 06 '17 14:09 stale[bot]