Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to remove plugins #38

Open
benjie opened this issue Mar 15, 2018 · 3 comments
Open

Document how to remove plugins #38

benjie opened this issue Mar 15, 2018 · 3 comments

Comments

@benjie
Copy link
Member

benjie commented Mar 15, 2018

Also expose this via the CLI and via .postgraphilerc

@benjie
Copy link
Member Author

benjie commented Mar 15, 2018

Ref: graphile/crystal#714

@eladkolet
Copy link

eladkolet commented Sep 9, 2018

Hey @benjie , is they a way to remove both of the default generation of "itemById(id: Int!)" and "itemByUniqueKey1AndUniqueKey2(uniqueKey1: ...)" and also disable the NodePlugin ?

Thanks!

@benjie
Copy link
Member Author

benjie commented Sep 10, 2018

Something like this:

app.use(postgraphile(process.env.DATABASE_URL, ['app_public'], {
  skipPlugins: [
    require('graphile-build').NodePlugin,
    require('graphile-build-pg').PgRowByUniqueConstraint,
  ],
}));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants