Skip to content

How to select all items that have zero child rows for a particalar relation #7097

Answered by leoalves
binary64 asked this question in General
Discussion options

You must be logged in to vote
query {
  people(where: {_not: { pets: {} } }) {
    name
    pets {
       id
       name
    }
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Adron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
None yet
2 participants