Skip to content

Commit 917edf9

Browse files
committed
Breaking change notice
1 parent 9ec83bc commit 917edf9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ This plugin adds a `filter` argument to Connection types in PostGraphile v4.
77
88
> **Warning:** Use of this plugin (particularly with the default options) may make it **astoundingly trivial** for a malicious actor (or a well-intentioned application that generates complex GraphQL queries) to overwhelm your database with expensive queries. See the Performance and Security section for details.
99
10+
## Breaking change in beta.4
11+
12+
The `contains` string comparison operator was renamed to `includes` to make room for JSONB operators `contains` and `containedBy`. To maintain the old names, you can specify the following in `graphileBuildOptions`:
13+
14+
```js
15+
connectionFilterOperatorNames: {
16+
includes: "contains",
17+
includesInsensitive: "containsInsensitive",
18+
notIncludes: "notContains",
19+
notIncludesInsensitive: "notContainsInsensitive",
20+
contains: "jsonbContains",
21+
containedBy: "jsonbContainedBy"
22+
}
23+
```
24+
1025
## Compatibility
1126

1227
| PostGraphile version | Plugin version |

0 commit comments

Comments
 (0)