{"id":16193489,"url":"https://github.com/pyramation/graphile-column-privileges-mutations","last_synced_at":"2025-03-19T04:30:39.334Z","repository":{"id":57253246,"uuid":"298128001","full_name":"pyramation/graphile-column-privileges-mutations","owner":"pyramation","description":"enable use of column-level SELECT grants, while still providing auto-generated mutations within PostGraphile","archived":false,"fork":false,"pushed_at":"2020-09-30T23:15:42.000Z","size":42,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T02:03:51.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyramation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-24T00:32:18.000Z","updated_at":"2023-05-28T15:32:29.000Z","dependencies_parsed_at":"2022-08-31T22:11:23.625Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/graphile-column-privileges-mutations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fgraphile-column-privileges-mutations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fgraphile-column-privileges-mutations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fgraphile-column-privileges-mutations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fgraphile-column-privileges-mutations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/graphile-column-privileges-mutations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243968543,"owners_count":20376412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T08:15:00.874Z","updated_at":"2025-03-19T04:30:39.023Z","avatar_url":"https://github.com/pyramation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphile-column-privileges-mutations [![Build Status](https://travis-ci.org/pyramation/graphile-column-privileges-mutations.svg?branch=master)](https://travis-ci.org/pyramation/graphile-column-privileges-mutations)\n\n```sh\nnpm install graphile-column-privileges-mutations \n```\n\nThis [PostGraphile](http://postgraphile.org/) 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.\n\nTo give you a sense of why/where this plugin was born: https://github.com/graphile/graphile-engine/issues/260\n\n## Usage\n\n1. Disable the default mutations in your graphile settings object\n2. Append the new plugins!\n3. Enjoy!\n\n```js\napp.use(\n  postgraphile(connectionStr, schemas, {\n    appendPlugins: [\n      PgMutationCreatePlugin,\n      PgMutationUpdateDeletePlugin\n    ],\n    graphileBuildOptions: {\n      // disable the default mutations\n      pgDisableDefaultMutations: true\n    }\n  })\n);\n```\n\n## Examples\n\nExample with app users and select grants here:\n\nhttps://github.com/pyramation/graphile-column-select-grants-example\n\n\n## Testing\n\n```sh\ncreatedb mutation_example\npsql mutation_example \u003c sql/roles.sql\npsql mutation_example \u003c sql/user.sql\npsql mutation_example \u003c sql/schema.sql\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fgraphile-column-privileges-mutations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fgraphile-column-privileges-mutations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fgraphile-column-privileges-mutations/lists"}