Closed
Description
ExistsFilter
does not work with GraphQL.
Minimal example:
{
user(posts:{exists: true}) {
edges {
node {
id
username
}
}
}
}
Returns all users, not only those, who have any posts.
This is because the filter expects string "true"|"false"
or integer 1|0
. However, GraphQL expects a boolean there.
The fix seems easy: adding true
and false
to
core/src/Bridge/Doctrine/Orm/Filter/ExistsFilter.php
Lines 78 to 80 in 3d17f85
I will try to provide a PR when I add some test to these cases.