graphback icon indicating copy to clipboard operation
graphback copied to clipboard

More powerful selection set filtering on many to many relations

Open lastmjs opened this issue 4 years ago • 4 comments

It looks like filters on relations in selection sets can only filter by the by. This is somewhat useful, but vastly less than what is going to be needed for many use cases. Can we allow filters on relations in selection sets to have all of the capabilities of the filters on find queries? Limit, order by, paging, everything should be possible wherever filters are allowed

lastmjs avatar Jun 18 '20 18:06 lastmjs

Or maybe I'm doing something wrong with setting up the relation that is causing it to not fully support filtering?

lastmjs avatar Jun 18 '20 18:06 lastmjs

It looks like this is a problem with many to many relationships. Is it currently possible to do filtering in selection sets on a many to many relationship?

lastmjs avatar Jun 18 '20 18:06 lastmjs

This might be a duplicate of this: https://github.com/aerogear/graphback/issues/1343 This issue highlights the problem in a selection set, but under the hood the filtering might all be the same, not sure

lastmjs avatar Jun 18 '20 18:06 lastmjs

Can we allow filters on relations in selection sets to have all of the capabilities of the filters on find queries? Limit, order by, paging, everything should be possible wherever filters are allowed

This looks like a duplicate of https://github.com/aerogear/graphback/issues/1122. If so let's close this in favor of the other.

/cc @lastmjs @craicoverflow @wtrocki

machi1990 avatar Aug 26 '20 08:08 machi1990