BULK POST API fail with validations for few records return inserted records along with error

14 views
Skip to first unread message

Tushar Gupta

unread,
Oct 20, 2017, 8:12:29 AM10/20/17
to LoopbackJS
Hi Guys,
I'm using POST API to create bulk records by sending an array of records when there is an error for one the recordafterRemoteError error runs and sends the errors back but I want newly created records too.
afterRemote is only fired for full request success, here, in this case, few records fail and give an error.
Is there a way to access all the inserted records inside the method afterRemoteError or is there any other alternative approach ( other than model hooks ) ?
Reply all
Reply to author
Forward
0 new messages