Skip to content

Nested relationship queries in where clauses #97

Closed
@molexx

Description

@molexx

In a top level where clause you can only use a relationship of the first entity, after that you can only use simple attributes not relationships.

For example:

query {  
  Books(where: {
    author: {id: {EQ: 1}}
  }) {
    select {
      id
      title
      genre
      author {
        id
        name
      }
    }
  }
}

you can say 'author: {id: ' but you can't say 'author: {books: '.
Would it be possible to allow this please?

There are comments on this in #96.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions