Skip to content

Add equivalent of Dgraph's 'has' to GraphQL #5819

@MichaelJCompton

Description

@MichaelJCompton

It's currently not possible to filter in GraphQL by if a node does or does not have a particular edge. We, should port Dgraph's has condition to solve that.

Expect it to look like

queryUser(filter: { has: friends }) { 
   ... 
} 

or

{
  queryUser(filter: {firstName: {eq: null}}) {
    username
    firstName
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/graphqlIssues related to GraphQL support on Dgraph.kind/featureSomething completely new we should consider.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions