diff --git a/postgraphile/postgraphile/__tests__/schema/v4/enum_tables.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/enum_tables.1.export.mjs index 80a0b6d86..84f8bb1f9 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/enum_tables.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/enum_tables.1.export.mjs @@ -523,7 +523,7 @@ const spec_lotsOfEnums = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/function-clash-with-tags-file-workaround.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/function-clash-with-tags-file-workaround.1.export.mjs index 666239536..03ab57a58 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/function-clash-with-tags-file-workaround.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/function-clash-with-tags-file-workaround.1.export.mjs @@ -15369,16 +15369,22 @@ const makeArgs119 = (args, path = []) => { }; const resource_table_mutationPgResource = registry.pgResources["table_mutation"]; const argDetailsSimple120 = [{ - graphqlArgName: "object", - postgresArgName: "object", - pgCodec: compoundTypeCodec, + graphqlArgName: "post", + postgresArgName: "post", + pgCodec: postCodec, + required: true, + fetcher: null +}, { + graphqlArgName: "suffix", + postgresArgName: "suffix", + pgCodec: TYPES.text, required: true, fetcher: null }]; const makeArgs120 = (args, path = []) => { const selectArgs = []; let skipped = false; - for (let i = 0; i < 1; i++) { + for (let i = 0; i < 2; i++) { const { graphqlArgName, postgresArgName, @@ -15419,7 +15425,7 @@ const makeArgs120 = (args, path = []) => { } return selectArgs; }; -const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; +const resource_post_with_suffixPgResource = registry.pgResources["post_with_suffix"]; const argDetailsSimple121 = [{ graphqlArgName: "object", postgresArgName: "object", @@ -15471,8 +15477,112 @@ const makeArgs121 = (args, path = []) => { } return selectArgs; }; -const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; +const resource_mutation_compound_type_arrayPgResource = registry.pgResources["mutation_compound_type_array"]; const argDetailsSimple122 = [{ + graphqlArgName: "object", + postgresArgName: "object", + pgCodec: compoundTypeCodec, + required: true, + fetcher: null +}]; +const makeArgs122 = (args, path = []) => { + const selectArgs = []; + let skipped = false; + for (let i = 0; i < 1; i++) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + required, + fetcher + } = argDetailsSimple122[i]; + const $raw = args.getRaw([...path, graphqlArgName]); + let step; + if ($raw.evalIs(undefined)) { + if (!required && i >= 0 - 1) { + skipped = true; + continue; + } else { + step = constant(null); + } + } else if (fetcher) { + step = fetcher(args.get([...path, graphqlArgName])).record(); + } else { + step = args.get([...path, graphqlArgName]); + } + if (skipped) { + const name = postgresArgName; + if (!name) { + throw new Error("GraphileInternalError<6f9e0fbc-6c73-4811-a7cf-c2bc2b3c0946>: This should not be possible since we asserted that allArgsAreNamed"); + } + selectArgs.push({ + step, + pgCodec, + name + }); + } else { + selectArgs.push({ + step, + pgCodec + }); + } + } + return selectArgs; +}; +const resource_compound_type_array_mutationPgResource = registry.pgResources["compound_type_array_mutation"]; +const argDetailsSimple123 = [{ + graphqlArgName: "posts", + postgresArgName: "posts", + pgCodec: postArrayCodec, + required: true, + fetcher: null +}]; +const makeArgs123 = (args, path = []) => { + const selectArgs = []; + let skipped = false; + for (let i = 0; i < 1; i++) { + const { + graphqlArgName, + postgresArgName, + pgCodec, + required, + fetcher + } = argDetailsSimple123[i]; + const $raw = args.getRaw([...path, graphqlArgName]); + let step; + if ($raw.evalIs(undefined)) { + if (!required && i >= 0 - 1) { + skipped = true; + continue; + } else { + step = constant(null); + } + } else if (fetcher) { + step = fetcher(args.get([...path, graphqlArgName])).record(); + } else { + step = args.get([...path, graphqlArgName]); + } + if (skipped) { + const name = postgresArgName; + if (!name) { + throw new Error("GraphileInternalError<6f9e0fbc-6c73-4811-a7cf-c2bc2b3c0946>: This should not be possible since we asserted that allArgsAreNamed"); + } + selectArgs.push({ + step, + pgCodec, + name + }); + } else { + selectArgs.push({ + step, + pgCodec + }); + } + } + return selectArgs; +}; +const resource_post_manyPgResource = registry.pgResources["post_many"]; +const argDetailsSimple124 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15485,7 +15595,7 @@ const argDetailsSimple122 = [{ required: true, fetcher: null }]; -const makeArgs122 = (args, path = []) => { +const makeArgs124 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 2; i++) { @@ -15495,7 +15605,7 @@ const makeArgs122 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple122[i]; + } = argDetailsSimple124[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15530,7 +15640,7 @@ const makeArgs122 = (args, path = []) => { return selectArgs; }; const resource_mutation_out_complexPgResource = registry.pgResources["mutation_out_complex"]; -const argDetailsSimple123 = [{ +const argDetailsSimple125 = [{ graphqlArgName: "a", postgresArgName: "a", pgCodec: TYPES.int, @@ -15543,7 +15653,7 @@ const argDetailsSimple123 = [{ required: true, fetcher: null }]; -const makeArgs123 = (args, path = []) => { +const makeArgs125 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 2; i++) { @@ -15553,7 +15663,7 @@ const makeArgs123 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple123[i]; + } = argDetailsSimple125[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15588,8 +15698,8 @@ const makeArgs123 = (args, path = []) => { return selectArgs; }; const resource_mutation_out_complex_setofPgResource = registry.pgResources["mutation_out_complex_setof"]; -const argDetailsSimple124 = []; -const makeArgs124 = (args, path = []) => { +const argDetailsSimple126 = []; +const makeArgs126 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 0; i++) { @@ -15599,7 +15709,7 @@ const makeArgs124 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple124[i]; + } = argDetailsSimple126[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15634,8 +15744,8 @@ const makeArgs124 = (args, path = []) => { return selectArgs; }; const resource_mutation_out_tablePgResource = registry.pgResources["mutation_out_table"]; -const argDetailsSimple125 = []; -const makeArgs125 = (args, path = []) => { +const argDetailsSimple127 = []; +const makeArgs127 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 0; i++) { @@ -15645,7 +15755,7 @@ const makeArgs125 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple125[i]; + } = argDetailsSimple127[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15680,8 +15790,8 @@ const makeArgs125 = (args, path = []) => { return selectArgs; }; const resource_mutation_out_table_setofPgResource = registry.pgResources["mutation_out_table_setof"]; -const argDetailsSimple126 = []; -const makeArgs126 = (args, path = []) => { +const argDetailsSimple128 = []; +const makeArgs128 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 0; i++) { @@ -15691,7 +15801,7 @@ const makeArgs126 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple126[i]; + } = argDetailsSimple128[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15726,8 +15836,8 @@ const makeArgs126 = (args, path = []) => { return selectArgs; }; const resource_table_set_mutationPgResource = registry.pgResources["table_set_mutation"]; -const argDetailsSimple127 = []; -const makeArgs127 = (args, path = []) => { +const argDetailsSimple129 = []; +const makeArgs129 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 0; i++) { @@ -15737,7 +15847,7 @@ const makeArgs127 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple127[i]; + } = argDetailsSimple129[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15772,14 +15882,14 @@ const makeArgs127 = (args, path = []) => { return selectArgs; }; const resource_type_function_connection_mutationPgResource = registry.pgResources["type_function_connection_mutation"]; -const argDetailsSimple128 = [{ +const argDetailsSimple130 = [{ graphqlArgName: "id", postgresArgName: "id", pgCodec: TYPES.int, required: true, fetcher: null }]; -const makeArgs128 = (args, path = []) => { +const makeArgs130 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 1; i++) { @@ -15789,7 +15899,7 @@ const makeArgs128 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple128[i]; + } = argDetailsSimple130[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -15824,8 +15934,8 @@ const makeArgs128 = (args, path = []) => { return selectArgs; }; const resource_type_function_mutationPgResource = registry.pgResources["type_function_mutation"]; -const argDetailsSimple129 = []; -const makeArgs129 = (args, path = []) => { +const argDetailsSimple131 = []; +const makeArgs131 = (args, path = []) => { const selectArgs = []; let skipped = false; for (let i = 0; i < 0; i++) { @@ -15835,7 +15945,7 @@ const makeArgs129 = (args, path = []) => { pgCodec, required, fetcher - } = argDetailsSimple129[i]; + } = argDetailsSimple131[i]; const $raw = args.getRaw([...path, graphqlArgName]); let step; if ($raw.evalIs(undefined)) { @@ -20412,6 +20522,12 @@ type Mutation { """ input: TableMutationInput! ): TableMutationPayload + postWithSuffix( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PostWithSuffixInput! + ): PostWithSuffixPayload @deprecated(reason: "This is deprecated (comment on function a.post_with_suffix).") mutationCompoundTypeArray( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -20424,6 +20540,12 @@ type Mutation { """ input: CompoundTypeArrayMutationInput! ): CompoundTypeArrayMutationPayload + postMany( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: PostManyInput! + ): PostManyPayload mutationOutComplex( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -22518,6 +22640,51 @@ input TableMutationInput { id: Int } +"""The output of our \`postWithSuffix\` mutation.""" +type PostWithSuffixPayload { + """ + The exact same \`clientMutationId\` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + post: Post + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our \`Post\`. May be used by Relay 1.""" + postEdge( + """The method to use when ordering \`Post\`.""" + orderBy: [PostsOrderBy!]! = [PRIMARY_KEY_ASC] + ): PostsEdge + + """Reads a single \`Person\` that is related to this \`Post\`.""" + personByAuthorId: Person +} + +"""All input for the \`postWithSuffix\` mutation.""" +input PostWithSuffixInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + post: PostInput + suffix: String +} + +"""An input for mutations affecting \`Post\`""" +input PostInput { + id: Int + headline: String! + body: String + authorId: Int + enums: [AnEnum] + comptypes: [ComptypeInput] +} + """The output of our \`mutationCompoundTypeArray\` mutation.""" type MutationCompoundTypeArrayPayload { """ @@ -22568,6 +22735,31 @@ input CompoundTypeArrayMutationInput { object: CompoundTypeInput } +"""The output of our \`postMany\` mutation.""" +type PostManyPayload { + """ + The exact same \`clientMutationId\` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + posts: [Post] + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the \`postMany\` mutation.""" +input PostManyInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + posts: [PostInput] +} + """The output of our \`mutationOutComplex\` mutation.""" type MutationOutComplexPayload { """ @@ -39941,9 +40133,26 @@ export const plans = { } } }, - mutationCompoundTypeArray: { + postWithSuffix: { plan($root, args, _info) { const selectArgs = makeArgs120(args, ["input"]); + const $result = resource_post_with_suffixPgResource.execute(selectArgs, "mutation"); + return object({ + result: $result + }); + }, + args: { + input: { + autoApplyAfterParentPlan: true, + applyPlan(_, $object) { + return $object; + } + } + } + }, + mutationCompoundTypeArray: { + plan($root, args, _info) { + const selectArgs = makeArgs121(args, ["input"]); const $result = resource_mutation_compound_type_arrayPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -39960,7 +40169,7 @@ export const plans = { }, compoundTypeArrayMutation: { plan($root, args, _info) { - const selectArgs = makeArgs121(args, ["input"]); + const selectArgs = makeArgs122(args, ["input"]); const $result = resource_compound_type_array_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -39975,9 +40184,26 @@ export const plans = { } } }, + postMany: { + plan($root, args, _info) { + const selectArgs = makeArgs123(args, ["input"]); + const $result = resource_post_manyPgResource.execute(selectArgs, "mutation"); + return object({ + result: $result + }); + }, + args: { + input: { + autoApplyAfterParentPlan: true, + applyPlan(_, $object) { + return $object; + } + } + } + }, mutationOutComplex: { plan($root, args, _info) { - const selectArgs = makeArgs122(args, ["input"]); + const selectArgs = makeArgs124(args, ["input"]); const $result = resource_mutation_out_complexPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -39994,7 +40220,7 @@ export const plans = { }, mutationOutComplexSetof: { plan($root, args, _info) { - const selectArgs = makeArgs123(args, ["input"]); + const selectArgs = makeArgs125(args, ["input"]); const $result = resource_mutation_out_complex_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40011,7 +40237,7 @@ export const plans = { }, mutationOutTable: { plan($root, args, _info) { - const selectArgs = makeArgs124(args, ["input"]); + const selectArgs = makeArgs126(args, ["input"]); const $result = resource_mutation_out_tablePgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40028,7 +40254,7 @@ export const plans = { }, mutationOutTableSetof: { plan($root, args, _info) { - const selectArgs = makeArgs125(args, ["input"]); + const selectArgs = makeArgs127(args, ["input"]); const $result = resource_mutation_out_table_setofPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40045,7 +40271,7 @@ export const plans = { }, tableSetMutation: { plan($root, args, _info) { - const selectArgs = makeArgs126(args, ["input"]); + const selectArgs = makeArgs128(args, ["input"]); const $result = resource_table_set_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40062,7 +40288,7 @@ export const plans = { }, typeFunctionConnectionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs127(args, ["input"]); + const selectArgs = makeArgs129(args, ["input"]); const $result = resource_type_function_connection_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40079,7 +40305,7 @@ export const plans = { }, typeFunctionMutation: { plan($root, args, _info) { - const selectArgs = makeArgs128(args, ["input"]); + const selectArgs = makeArgs130(args, ["input"]); const $result = resource_type_function_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -40096,7 +40322,7 @@ export const plans = { }, typeFunctionListMutation: { plan($root, args, _info) { - const selectArgs = makeArgs129(args, ["input"]); + const selectArgs = makeArgs131(args, ["input"]); const $result = resource_type_function_list_mutationPgResource.execute(selectArgs, "mutation"); return object({ result: $result @@ -43058,6 +43284,111 @@ export const plans = { }, id: undefined }, + PostWithSuffixPayload: { + __assertStep: ObjectStep, + clientMutationId($object) { + return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + }, + post($object) { + return $object.get("result"); + }, + query() { + return rootValue(); + }, + postEdge: { + plan($mutation, args, info) { + const $result = $mutation.getStepForKey("result", true); + if (!$result) { + return constant(null); + } + const $select = (() => { + if ($result instanceof PgDeleteSingleStep) { + return pgSelectFromRecord($result.resource, $result.record()); + } else { + const spec = postUniques[0].attributes.reduce((memo, attributeName) => { + memo[attributeName] = $result.get(attributeName); + return memo; + }, Object.create(null)); + return pgResource_postPgResource.find(spec); + } + })(); + // Perform ordering + const $value = args.getRaw("orderBy"); + applyOrderToPlan($select, $value, info.schema.getType("PostsOrderBy")); + const $connection = connection($select); + // NOTE: you must not use `$single = $select.single()` + // here because doing so will mark the row as unique, and + // then the ordering logic (and thus cursor) will differ. + const $single = $select.row(first($select)); + return new EdgeStep($connection, $single); + }, + args: { + orderBy: undefined + } + }, + personByAuthorId($record) { + return pgResource_personPgResource.get({ + id: $record.get("result").get("author_id") + }); + } + }, + PostWithSuffixInput: { + clientMutationId: { + applyPlan($input, val) { + $input.set("clientMutationId", val.get()); + }, + autoApplyAfterParentApplyPlan: true + }, + post: undefined, + suffix: undefined + }, + PostInput: { + "__inputPlan": function PostInput_inputPlan() { + return object(Object.create(null)); + }, + id: { + applyPlan($insert, val) { + $insert.set("id", val.get()); + }, + autoApplyAfterParentInputPlan: true, + autoApplyAfterParentApplyPlan: true + }, + headline: { + applyPlan($insert, val) { + $insert.set("headline", val.get()); + }, + autoApplyAfterParentInputPlan: true, + autoApplyAfterParentApplyPlan: true + }, + body: { + applyPlan($insert, val) { + $insert.set("body", val.get()); + }, + autoApplyAfterParentInputPlan: true, + autoApplyAfterParentApplyPlan: true + }, + authorId: { + applyPlan($insert, val) { + $insert.set("author_id", val.get()); + }, + autoApplyAfterParentInputPlan: true, + autoApplyAfterParentApplyPlan: true + }, + enums: { + applyPlan($insert, val) { + $insert.set("enums", val.get()); + }, + autoApplyAfterParentInputPlan: true, + autoApplyAfterParentApplyPlan: true + }, + comptypes: { + applyPlan($insert, val) { + $insert.set("comptypes", val.get()); + }, + autoApplyAfterParentInputPlan: true, + autoApplyAfterParentApplyPlan: true + } + }, MutationCompoundTypeArrayPayload: { __assertStep: ObjectStep, clientMutationId($object) { @@ -43100,6 +43431,27 @@ export const plans = { }, object: undefined }, + PostManyPayload: { + __assertStep: ObjectStep, + clientMutationId($object) { + return $object.getStepForKey("clientMutationId", true) ?? constant(undefined); + }, + posts($object) { + return $object.get("result"); + }, + query() { + return rootValue(); + } + }, + PostManyInput: { + clientMutationId: { + applyPlan($input, val) { + $input.set("clientMutationId", val.get()); + }, + autoApplyAfterParentApplyPlan: true + }, + posts: undefined + }, MutationOutComplexPayload: { __assertStep: ObjectStep, clientMutationId($object) { diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.1.export.mjs index 6ba72dbe4..33b077f69 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.1.export.mjs @@ -505,7 +505,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.1.export.mjs index 0d9abf666..f1e25449a 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.execute.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.execute.1.export.mjs index 2b7063db6..bedac4b92 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.execute.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.execute.1.export.mjs @@ -505,7 +505,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.loads-title.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.loads-title.1.export.mjs index 659c66f97..013f184a4 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.loads-title.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.loads-title.1.export.mjs @@ -324,7 +324,7 @@ const spec_tvShows = { extensions: { tags: { omit: "read,create,update,delete,all,many", - behavior: ["-select -node -insert -update -delete -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection"] + behavior: ["-select -node -connection -list -array -single -insert -update -delete -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection"] } } }, @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.shows-title-asterisk.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.shows-title-asterisk.1.export.mjs index ab1bcbbb7..3cbeb18ce 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.shows-title-asterisk.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.shows-title-asterisk.1.export.mjs @@ -278,7 +278,7 @@ const spec_tvEpisodes = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } }, @@ -327,7 +327,7 @@ const spec_tvShows = { extensions: { tags: { omit: "*", - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } }, @@ -511,7 +511,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.title-order.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.title-order.1.export.mjs index 66d266b72..75123b5a2 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.title-order.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.title-order.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.update-title.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.update-title.1.export.mjs index df33b2099..60b6130df 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.update-title.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitcolumns.update-title.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.1.export.mjs index 0c6516488..fd8311f6e 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.constraints.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.constraints.1.export.mjs index 80fa57ce3..78a05ad25 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.constraints.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.constraints.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-asterisk.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-asterisk.1.export.mjs index 176983f0a..66ea9e529 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-asterisk.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-asterisk.1.export.mjs @@ -170,7 +170,7 @@ const spec_films = { }, tags: Object.assign(Object.create(null), { omit: "*", - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -348,7 +348,7 @@ const spec_tvShows = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -511,7 +511,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-create.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-create.1.export.mjs index f40afd84e..e55b501c6 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-create.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-create.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-delete.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-delete.1.export.mjs index 642bdf57d..52a43c074 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-delete.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-delete.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-loads.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-loads.1.export.mjs index 505dd0a39..ad10e0364 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-loads.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-loads.1.export.mjs @@ -170,7 +170,7 @@ const spec_films = { }, tags: Object.assign(Object.create(null), { omit: "read,all,update,create,delete,many", - behavior: ["-select -node -query:resource:list -query:resource:connection -update -insert -delete -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection"] + behavior: ["-select -node -connection -list -array -single -query:resource:list -query:resource:connection -update -insert -delete -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection"] }) }, executor: executor @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-update.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-update.1.export.mjs index b5f871744..9ad85be6f 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-update.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.films-update.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.shows-order.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.shows-order.1.export.mjs index 3bb3cecf2..cd3ffdbe2 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.shows-order.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/omit-rename.omitstuff.shows-order.1.export.mjs @@ -508,7 +508,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs index 74cd99272..dcb3afd98 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/polymorphic.1.export.mjs @@ -64,7 +64,7 @@ const spec_awsApplicationFirstPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -104,7 +104,7 @@ const spec_awsApplicationThirdPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -144,7 +144,7 @@ const spec_gcpApplicationFirstPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -184,7 +184,7 @@ const spec_gcpApplicationThirdPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs index 04b783bd2..28d8421d5 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/refs.1.export.mjs @@ -134,7 +134,7 @@ const spec_posts = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } @@ -259,7 +259,7 @@ const registry = makeRegistry({ extensions: { tags: { omit: true, - behavior: ["-select", "-*"] + behavior: ["-select", "-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } @@ -277,7 +277,7 @@ const registry = makeRegistry({ extensions: { tags: { omit: true, - behavior: ["-select", "-*"] + behavior: ["-select", "-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs index cc558be42..15f1d27c1 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/relay.1.export.mjs @@ -505,7 +505,7 @@ const spec_person = { extensions: { tags: { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] } } } diff --git a/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.polymorphic.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.polymorphic.1.export.mjs index cdf9417dd..0b65a26c9 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.polymorphic.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/skipNodePlugin.polymorphic.1.export.mjs @@ -47,7 +47,7 @@ const spec_awsApplicationFirstPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -87,7 +87,7 @@ const spec_awsApplicationThirdPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -127,7 +127,7 @@ const spec_gcpApplicationFirstPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -167,7 +167,7 @@ const spec_gcpApplicationThirdPartyVulnerabilities = { }, tags: Object.assign(Object.create(null), { omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.1.export.mjs index 06545ac1b..ff7a3dbf5 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.1.export.mjs @@ -101,7 +101,7 @@ const spec_post_table = { tags: Object.assign(Object.create(null), { name: "post_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -173,7 +173,7 @@ const spec_offer_table = { tags: Object.assign(Object.create(null), { name: "offer_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post.1.export.mjs index db9a7f383..ca0246c46 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post.1.export.mjs @@ -101,7 +101,7 @@ const spec_post_table = { tags: Object.assign(Object.create(null), { name: "post_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -173,7 +173,7 @@ const spec_offer_table = { tags: Object.assign(Object.create(null), { name: "offer_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view.1.export.mjs index f596d51ed..410fcbfb7 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view.1.export.mjs @@ -101,7 +101,7 @@ const spec_post_table = { tags: Object.assign(Object.create(null), { name: "post_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -173,7 +173,7 @@ const spec_offer_table = { tags: Object.assign(Object.create(null), { name: "offer_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view_no_pk.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view_no_pk.1.export.mjs index 285f7ef22..4aa5199ac 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view_no_pk.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.post_view_no_pk.1.export.mjs @@ -101,7 +101,7 @@ const spec_post_table = { tags: Object.assign(Object.create(null), { name: "post_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -174,7 +174,7 @@ const spec_offer_table = { tags: Object.assign(Object.create(null), { name: "offer_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique.1.export.mjs index 4b11739f9..da6b14fb9 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique.1.export.mjs @@ -101,7 +101,7 @@ const spec_post_table = { tags: Object.assign(Object.create(null), { name: "post_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -173,7 +173,7 @@ const spec_offer_table = { tags: Object.assign(Object.create(null), { name: "offer_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor diff --git a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique_pk.1.export.mjs b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique_pk.1.export.mjs index c1b32160a..b2db96258 100644 --- a/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique_pk.1.export.mjs +++ b/postgraphile/postgraphile/__tests__/schema/v4/smart_comment_relations.view_fake_unique_pk.1.export.mjs @@ -101,7 +101,7 @@ const spec_post_table = { tags: Object.assign(Object.create(null), { name: "post_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor @@ -173,7 +173,7 @@ const spec_offer_table = { tags: Object.assign(Object.create(null), { name: "offer_table", omit: true, - behavior: ["-*"] + behavior: ["-insert -select -node -connection -list -array -single -update -delete -queryField -mutationField -typeField -filter -filterBy -order -orderBy -query:resource:list -query:resource:connection -singularRelation:resource:list -singularRelation:resource:connection -manyRelation:resource:list -manyRelation:resource:connection -manyToMany"] }) }, executor: executor