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 have used openapi to generate loopback code fro my angular frontend application.
When I try to add any filter like include, where etc to find method, it does not show appropriate results. It returns entire array.
e.g. this.RestaurantControllerControllerService.find({include:['restaurantGroup']}) is not showing the restaurantGroup relation.
If I directly use following code I am getting relevant results: http://localhost:3000/restaurants?filter[include][]=restaurantGroup
Please let me know if there is some particular way to pass params to find().
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I have used openapi to generate loopback code fro my angular frontend application.
When I try to add any filter like include, where etc to find method, it does not show appropriate results. It returns entire array.
e.g. this.RestaurantControllerControllerService.find({include:['restaurantGroup']}) is not showing the restaurantGroup relation.
If I directly use following code I am getting relevant results:
http://localhost:3000/restaurants?filter[include][]=restaurantGroup
Please let me know if there is some particular way to pass params to find().
Beta Was this translation helpful? Give feedback.
All reactions