Skip to content
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

Every filter on array relations fails when there is only one entity matching params #493

Open
WRadoslaw opened this issue Jun 7, 2022 · 1 comment
Assignees
Labels
bug Something isn't working low-prio qn-hydra-board

Comments

@WRadoslaw
Copy link

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
    }
  }
}
@ondratra
Copy link
Contributor

It seems that only the record with 2 referred unverified members. I'm not sure if that's a coincidence or useful information.

@ondratra ondratra self-assigned this Jul 12, 2022
@ondratra ondratra added the bug Something isn't working label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low-prio qn-hydra-board
Projects
None yet
Development

No branches or pull requests

3 participants