-
Notifications
You must be signed in to change notification settings - Fork 110
Filters for Nested Documents Via Relay Does Not Filter Properly #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@KimMatt, thanks for addressing this issue :) Regarding your query example, what's the result do you expect?
|
I would expect number one
|
I have had the same problem. |
Trying to figure out it, memo the reference first: graphql-python/graphene-sqlalchemy#110 |
@nephew92 @KimMatt : This feature is ready on updated master and Close this one, feel free to reopen it if any issues. |
…ation Issue graphql-python#50 and graphql-python#51 : fix various bugs and add unit tests
Filtering works for a base document to a query. But when filtering by a property for a nested document, the query returns all results regardless of the argument value.
Example.
Schema.py
Model.py
Query that fails:
The first argument to graphs filters properly. But the second argument does not filter at all, because all results are returned.
Result:
Here is the produced schema
The text was updated successfully, but these errors were encountered: