graphile-column-privileges-mutations
npm install graphile-column-privileges-mutations
This PostGraphile schema plugin was built to enable use of column-level SELECT grants, while still providing auto-generated mutations within PostGraphile. It works by using primary or unique constraints.
To give you a sense of why/where this plugin was born: https://github.com/graphile/graphile-engine/issues/260
Usage
- Disable the default mutations in your graphile settings object
- Append the new plugins!
- Enjoy!
app;
Examples
Example with app users and select grants here:
https://github.com/pyramation/graphile-column-select-grants-example
Testing
createdb mutation_examplepsql mutation_example < sql/roles.sqlpsql mutation_example < sql/user.sqlpsql mutation_example < sql/schema.sqlyarn test