Skip to content

Is there a known issue with filtering Many-To-Many relations? #1285

Answered by ShadeProps
ShadeProps asked this question in Q&A
Discussion options

You must be logged in to vote

Omg...... I don't know if this documented anywhere but I guess I've just been using the filtering wrong. I didn't realize you could add the query arguments multiple layers in on the relationship.

Fixed Query below

query {
  roles {
    edges {
      node {
        id
        users {
          id
          username
        }
        securities (filter: { type: { eq: "UI" } }  {
          id
          scope
          type
        }
      }
    }
  }
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ShadeProps
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants