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
I'm getting the following error when the sdk parses the response from UpdateALL:
TypeError: datum.map is not a function
The error comes from base.service.ts UpdateAll function:
.map((datum: T[]) => datum.map((data: T) => this.model.factory(data)));
I guess the issue is that the SDK expected an array of updated objects, but the default behaviour, at least on my Loopback 2 is to return an object with the count number.
The text was updated successfully, but these errors were encountered:
What type of issue are you creating?
What version of this module are you using?
Write other if any:
I'm getting the following error when the sdk parses the response from UpdateALL:
TypeError: datum.map is not a function
The error comes from base.service.ts UpdateAll function:
.map((datum: T[]) => datum.map((data: T) => this.model.factory(data)));
I guess the issue is that the SDK expected an array of updated objects, but the default behaviour, at least on my Loopback 2 is to return an object with the count number.
The text was updated successfully, but these errors were encountered: