Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

More powerful selection set filtering on many to many relations #1494

Open
lastmjs opened this issue Jun 18, 2020 · 4 comments
Open

More powerful selection set filtering on many to many relations #1494

lastmjs opened this issue Jun 18, 2020 · 4 comments

Comments

@lastmjs
Copy link

lastmjs commented Jun 18, 2020

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
Copy link
Author

lastmjs commented Jun 18, 2020

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

@lastmjs
Copy link
Author

lastmjs commented Jun 18, 2020

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 lastmjs changed the title More powerful selection set filtering on relations More powerful selection set filtering on many to many relations Jun 18, 2020
@lastmjs
Copy link
Author

lastmjs commented Jun 18, 2020

This might be a duplicate of this: #1343
This issue highlights the problem in a selection set, but under the hood the filtering might all be the same, not sure

@machi1990
Copy link
Contributor

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 #1122. If so let's close this in favor of the other.

/cc @lastmjs @craicoverflow @wtrocki

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants