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
Hello,
On my Category model, I have the following relation: "subscriptions": { "type": "hasMany", "model": "Subscription", "foreignKey": "", "options": { "nestRemoting": true } } },
How could I get the Count() result when running:
this.userService.getCategories(this.currentUser.id, {include: {relation: 'subscriptions', scope: {type: 'count'}}} ) .subscribe((data: any[]) => { this.categories = data;
I would like to count the number of subscription when getting the categories belonging to the user, in the same observable().
Thanks for any help.
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:
Please add a description for your issue:
Hello,
On my Category model, I have the following relation:
"subscriptions": { "type": "hasMany", "model": "Subscription", "foreignKey": "", "options": { "nestRemoting": true } } },
How could I get the Count() result when running:
this.userService.getCategories(this.currentUser.id, {include: {relation: 'subscriptions', scope: {type: 'count'}}} ) .subscribe((data: any[]) => { this.categories = data;
I would like to count the number of subscription when getting the categories belonging to the user, in the same observable().
Thanks for any help.
The text was updated successfully, but these errors were encountered: