hydra
hydra copied to clipboard
Every filter on array relations fails when there is only one entity matching params
Playground: https://query.joystream.org/graphql
First query, which returns all data:
query {
memberships (where: { referredMembers_some: {isVerified_eq:false}}) {
handle
createdAt
referredMembers {
handle
isVerified
}
}
}
Second query, which will omit members with one referral:
query {
memberships (where: { referredMembers_every: {isVerified_eq:false}}) {
handle
createdAt
referredMembers {
handle
isVerified
}
}
}
It seems that only the record with 2 referred unverified members. I'm not sure if that's a coincidence or useful information.