Skip to content

Commit 7fc1825

Browse files
authored
Merge pull request #930 from constructive-io/devin/1774831738-fix-grant-privileges-description
docs(grant_privileges): update blueprint table grants description to mention full CRUD default
2 parents 2f6e083 + 6e3e01f commit 7fc1825

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

graphile/node-type-registry/src/blueprint-types.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ export interface BlueprintTable {
897897
policies?: BlueprintPolicy[];
898898
/** Database roles to grant privileges to. Defaults to ["authenticated"]. */
899899
grant_roles?: string[];
900-
/** Privilege grants as [verb, column] tuples or objects. */
900+
/** Privilege grants as [verb, column] tuples or objects. Defaults to full CRUD (select/insert/update/delete for all columns). */
901901
grants?: unknown[];
902902
/** Whether to enable RLS on this table. Defaults to true. */
903903
use_rls?: boolean;

graphile/node-type-registry/src/codegen/generate-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ function buildBlueprintTable(): t.ExportNamedDeclaration {
566566
),
567567
addJSDoc(
568568
optionalProp('grants', t.tsArrayType(t.tsUnknownKeyword())),
569-
'Privilege grants as [verb, column] tuples or objects.'
569+
'Privilege grants as [verb, column] tuples or objects. Defaults to full CRUD (select/insert/update/delete for all columns).'
570570
),
571571
addJSDoc(
572572
optionalProp('use_rls', t.tsBooleanKeyword()),

0 commit comments

Comments
 (0)