Skip to content

Commit 893996f

Browse files
authored
Merge pull request #931 from constructive-io/devin/1774837130-blueprint-grants-default
docs(blueprint): update grants JSDoc to reflect empty default (no grants)
2 parents 7fc1825 + fff7dda commit 893996f

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. Defaults to full CRUD (select/insert/update/delete for all columns). */
900+
/** Privilege grants as [verb, column] tuples or objects. Defaults to empty (no grants — callers must explicitly specify). */
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. Defaults to full CRUD (select/insert/update/delete for all columns).'
569+
'Privilege grants as [verb, column] tuples or objects. Defaults to empty (no grants — callers must explicitly specify).'
570570
),
571571
addJSDoc(
572572
optionalProp('use_rls', t.tsBooleanKeyword()),

0 commit comments

Comments
 (0)