Hi there.
I have two models: posts and tags. They have a hasAndBelongsToMany relationship with one another. I want to filter posts by their tags over REST, something like "give me all the posts with the tag with id 12345". But I also want to preserve other filtering capabilities for the posts, and don't see anything in the docs that would accomplish this. I've been looking here
http://docs.strongloop.com/display/LB/Include+filter.
I know I can GET /tags/:tagId/posts, but the problem with this is that I can't apply any query strings to further filter the posts, for example:
GET /tags/:tagId/posts?filter[include]=tags does not add a tags array to the post objects in the response.
I've tried something like GET /posts?filter[include]=tags?filter[where][id]=12345 with no luck. This seems like something that might exist but be undocumented or that I just couldn't find. Is there a query string that accomplished what I want? Or is there any way to force the /tags/:tagId/posts endpoint to apply filters?
Thanks so much!!
Jenny