graphile-contrib / postgraphile-plugin-connection-filter

Filtering on PostGraphile connections
MIT License
286 stars 32 forks source link

Unable to pass graphileBuildOptions when using postgraphile-cli #182

Open hutber opened 2 years ago

hutber commented 2 years ago

Hey guys

I am using the filter and its an absolute game changer. However I cannot append buildOptions that I'm aware.

npx postgraphile -c 'postgres://hutber:pass@localhost/unsal' --cors -p 4006 --watch --enhance-graphiql --dynamic-json --export-schema-graphql schema.graphql --append-plugins postgraphile-plugin-connection-filter

mattbretl commented 1 year ago

(Sorry for the delayed response!)

That's correct, you'll have to use library mode if you want to customize the plugin.

If that's a deal breaker, I'd suggest forking the repo and hard-coding the desired defaults.