cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Complex filtering in GraphQL

pingelsan
Node Clone

I'm referring to this post: Complex GraphQL Filtering With neo4j-graphql.js

The "simple" filtering works as announced. However, as soon as I filter on a property of a dependent object in the graph, an empty result set is returned.

My schema has a customer type and an address type. My complex filter (I want to see only customers who have an address not in Germany) looks like this:

{
  CustomerOrLead(filter: 
    { address: { countrycode_not:"D"} }) {
    name
    role
    address {
      countrycode
      postalcode
    }
  }
}

Neo4j version is 3.5.12, "neo4j-graphql-js": "^2.6.0",
Any help is appreciated!

best regards,
Christoph

1 REPLY 1

pingelsan
Node Clone

Hm, I just noticed that I'm not using @neo4j/graphql, so I'm going to give this a try.