Showing results for 
Search instead for 
Did you mean: 

Graphql library @cypher directive not in where clauses

Hey everyone! 

I have a schema that looks like this 


I need to be able to filter by users that have completed a certain set of forms. I was able to add a @cypher directive onto my graphql schema like this:


completedTrack: Boolean!
statement: """
MATCH (this)<-[:SUBMITTED_BY]-(s:Submission)
WHERE EXISTS ((s)-[:SUBMITTED]->(:Form { type: $cypherParams.formTrackName }))

return count(s) >= $cypherParams.trackSurveys

I can sort by this value in my options when querying for users, but I am not able to filter by this value in my where clause. I noticed that other values that use the @cypher directive also have the same issue, which would be fairly big for my business logic. Is this a bug or intended feature? I would love to learn more on why they are left out of the where clauses that are generated. Thanks!

Nodes 2022
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.