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

GraphQL with Edge Filters or Nested Node filter not working #288

Open
BondJamesBond700 opened this issue Feb 23, 2023 · 1 comment
Open

Comments

@BondJamesBond700
Copy link

we tested it on 1.7.0
We have flow like
Person --> Roles --> Movie

Now Role has the various properties. when we try to put the filter on Edge , data is not returned.

below is the schema and graphql used.
-------GraphQL query---
"query":"{ 
person{
born
name
roles(role:"Charlie") {
role
movie{
released
title
}
}
}
}"
----------schema--------
type Role @relation(name:"ACTED_IN", from:"actor", to:"movie") {
  actor: Person
  movie: Movie
  role: [String]
}
type Person {
  name: String
  born: String
  roles: [Role]
}
type Movie {
  title: String
  released: String
  characters: [Role]
}
type Query {
  person: [Person]
  movie: [Movie]
}

@AakashSorathiya
Copy link
Contributor

Hi @BondJamesBond700, you have applied invalid filter. The type of role inside Role relation is List and the filter you have applied is of type String so that is why it is not returning any data. You can try with List filters mentioned here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants