-
Notifications
You must be signed in to change notification settings - Fork 147
Feature request: Filters for list properties #350
Comments
I'm assuming you mean a property on a node in your Neo4j graph, but w.r.t. graphql strictly, just to clarify: You mean a field in a type in your schema, yes? |
Yes. To be absolutely precise the type would be something like
And I want to be able to query with
Which would run something akin to this in cypher:
|
Issue should be closed, because PR #513 |
Not sure to open a new Issue but: When you chain filters with AND or OR the filter isn´t working anymore. For example: Totally fine: Not working: --> empty result. (I´m sure, there should be results) |
If I have a property,
myProp
, which is a list of strings or enums, I would like to be able to use amyProp_contains
filter.It looks like the lack of filters is by design https://github.com/neo4j-graphql/neo4j-graphql-js/blob/master/src/augment/input-values.js#L69, and most filters wouldn't make sense for lists, but
contains
querying feels like a very valid use case, and would map well to usingIN
in the underlying cypher.I'm happy to submit a PR if you're in favour of the feature
The text was updated successfully, but these errors were encountered: