diff --git a/modules/ROOT/pages/filtering.adoc b/modules/ROOT/pages/filtering.adoc index e491f99..9a42404 100644 --- a/modules/ROOT/pages/filtering.adoc +++ b/modules/ROOT/pages/filtering.adoc @@ -177,7 +177,7 @@ query CloseByUsers { === String comparison -The following case-sensitive comparison operators are available for `String` and `ID` types: +The following comparison operators are available for `String` and `ID` types: * `startsWith` * `endsWith` @@ -230,6 +230,35 @@ const features = { const neoSchema = new Neo4jGraphQL({ features, typeDefs, driver }); ---- +==== Case-insensitive comparison + +Case insensitive filters can be enabled with the `CASE_INSENSITIVE` option: + +```javascript +const neoSchema = new Neo4jGraphQL({ + features: { + filters: { + String: { + CASE_INSENSITIVE: true, + }, + }, + }, +}); +``` + +This enables the field `caseInsensitive` on string filters: + +```graphql +query { + movies(where: { title: { caseInsensitive: { eq: "the matrix" } } }) { + title + } +} +``` + +All the string filters can be used along with `caseInsensitive`. + + === RegEx matching The filter `matches` is available for comparison of `String` and `ID` types. @@ -628,4 +657,4 @@ query EventsAggregate { | - | - -|=== \ No newline at end of file +|===