You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
continuing the conversation for this comment #347 (comment)
Since #347, strong-remoting rejects array values for arguments of type object. As a result, it's no longer possible to send an array of objects via POST /api/my-model-/create and expect the server to create them all in a batch mode.
continuing the conversation for this comment #347 (comment)
Since #347, strong-remoting rejects array values for arguments of type object. As a result, it's no longer possible to send an array of objects via
POST /api/my-model-/createand expect the server to create them all in a batch mode.Background
with https://github.com/strongloop/strong-remoting/blob/master/3.0-RELEASE-NOTES.md#conversion-and-coercion-of-input-arguments
Array values are not allowed for arguments of type object.
https://github.com/strongloop/loopback/blob/ed8b651b988799b5b42289bddd9f568398776bc8/lib/persisted-model.js#L643
Why its a problem
I think the biggest breaking change brought from this would be the ability to do batch
POSToperationsPossible options
[SEMVER-MAJOR] Fix object type conversion #347 (comment)
add flag to
allowArraysfor object coercioni would go with this as it's least painful for migration
change type of persistetedModel methods that supports batch operations to 'any'
Create
POST /createManyand takearray of objects@strongloop/loopback-dev