File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,21 @@ adding fields using [custom queries](/postgraphile/custom-queries/),
25
25
[ makeExtendSchemaPlugin] ( /postgraphile/make-extend-schema-plugin/ ) .
26
26
27
27
You can also augment PostGraphile's existing connections using custom
28
- [ Graphile Engine plugins] ( /postgraphile/extending-raw/ ) , such as:
28
+ [ Graphile Engine plugins] ( /postgraphile/extending-raw/ ) , such as the following:
29
29
30
30
#### Filter Plugin
31
31
32
+ > 🚨** BEWARE** 🚨: adding powerful generic filtering capabilities to your
33
+ > GraphQL API is strongly discouraged, not just by Benjie (the maintainer of
34
+ > PostGraphile) but also
35
+ > [ by Lee Byron] ( https://twitter.com/leeb/status/1004655619431731200 ) (one of
36
+ > the inventors of GraphQL) and various other experts in the GraphQL ecosystem.
37
+ > It is ** strongly advised** that you add only very specific filters using one of
38
+ > the techniques above (and that you make their inputs as simple as possible)
39
+ > rather than using a generic filtering plugin like this. Not heeding this advice
40
+ > may lead to very significant performance issues down the line that are very
41
+ > hard for you to dig your way out of.
42
+
32
43
A very popular plugin is Matt Bretl's connection-filter plugin, located at
33
44
[ https://github.com/graphile-contrib/postgraphile-plugin-connection-filter ] ( https://github.com/graphile-contrib/postgraphile-plugin-connection-filter ) .
34
45
This adds a ` filter ` argument to connections that enables you to use advanced
You can’t perform that action at this time.
0 commit comments