graphile-contrib/postgraphile-plugin-connection-filter

Unable to pass graphileBuildOptions when using postgraphile-cli

hutber opened this issue · 1 comments

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

(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.